package com.navinfo.opentsp.platform.computing.dto;


import com.navinfo.opentsp.platform.location.protocol.common.LCFaultInfo;
import com.navinfo.opentsp.platform.location.protocol.common.LCFaultTimerUpload;

import java.util.ArrayList;
import java.util.List;

public  class FaultItem {
        private int faultAddr;
        private int SPN;
        private int FMI;

        public int getFaultAddr() {
            return faultAddr;
        }

        public void setFaultAddr(int faultAddr) {
            this.faultAddr = faultAddr;
        }

        public int getSPN() {
            return SPN;
        }

        public void setSPN(int SPN) {
            this.SPN = SPN;
        }

        public int getFMI() {
            return FMI;
        }

        public void setFMI(int FMI) {
            this.FMI = FMI;
        }


    public static FaultItem protoToBean(LCFaultTimerUpload.FaultItem faultItems){
        FaultItem faultItem = new FaultItem();
        faultItem.setFaultAddr(faultItems.getFaultAddr());
        faultItem.setFMI(faultItems.getFMI());
        faultItem.setSPN(faultItems.getSPN());

        return faultItem;
    }
}
